using System.Data.Entity.ModelConfiguration;

namespace RA_WebSite.Models.Mapping
{
    public class UtenteMap : EntityTypeConfiguration<Utente>
    {
        public UtenteMap()
        {
            this.HasKey(t => t.Id);

            this.ToTable("Utente");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.Username).HasColumnName("Username");
            this.Property(t => t.Password).HasColumnName("Password");
            this.Property(t => t.Ruolo).HasColumnName("Ruolo");
        }
    }
}
